COMPOSITION AND INHERITANCE MODEL COMPARISON
نویسندگان
چکیده
منابع مشابه
Balancing Software Composition and Inheritance
oftware coupling—the interdependence among software components—directly affects error rate and maintenance costs. Although reuse can reduce errors and cut initial development expenses, many reuse techniques such as inheritance (in which components derive behavior from ancestors) increase coupling. In contrast, composition—the combination of independent (i.e., noncoupled) components into larger ...
متن کاملTransforming inheritance into composition
Transforming Inherintance into Composition is a reengineering pattern describing a solution to a recurring reengineering problem. The problem is that transforming an inheritance relationship into a component relationship using delegation without a ecting correctness and functionality of systems is a time-consuming and error-prone task. Solving this problem leads to more exible and more comprehe...
متن کاملInheritance Using Contracts & Object Composition, 1997
Normal class based code inheritance across component bound aries creates a dependency between the involved components To avoid this a speci cation of the inherited class must be part of the respective component s contract and the inheriting class must be speci ed with ref erence to this speci cation only With this inheritance can be replaced by object composition without sacri cing the possibil...
متن کاملSoftware Composition with Multiple Nested Inheritance
This paper introduces a programming language that makes it convenient to extend large software systems and even to compose them in a modular way. JX/MI supports multiple nested inheritance, building on earlier work on nested inheritance in the language JX. Nested inheritance permits modular, type-safe extension of a package (including nested packages and classes), while preserving existing type...
متن کاملSafe metaclass composition using mixin-based inheritance
In the context of meta-programming and reflective languages, classes are treated as full fledged objects which are instances of other classes named metaclasses. Metaclasses have proved to be useful for defining new class properties. Examples of such properties are lazy memory allocation, multiple inheritance, having a single instance. . . A class with some property is obtained by instantiating ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: HUMAN. ENVIRONMENT. TECHNOLOGIES. Proceedings of the Students International Scientific and Practical Conference
سال: 2019
ISSN: 2592-8597
DOI: 10.17770/het2019.23.4394